//
//  CommunityChangeCell.swift
//  Employee
//
//  Created by tancheng on 2018/6/26.
//  Copyright © 2018年 remotevillage. All rights reserved.
//

import UIKit

class CommunityChangeCell: UITableViewCell {

    static let reuseIdentifer = "CommunityChangeCell"
    
    var changeBlock:((Int)->())?
    
    var index = 0
    
    
    @IBOutlet weak var communityName: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        selectionStyle = .none
    }
    
   
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    @IBAction func change(_ sender: UIButton) {
        self.changeBlock?(index)
    }
}
